<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style type="text/css">
        #box1{
            width: 400px;
            height: 400px;
            border: 1px solid red;
           background-image: url("img/image.jpg");
            background-size:100% 100% ;
            margin-bottom: 10px;

        }
        #box2{
            width: 400px;
            height: 400px;
            border: 1px solid red;
            background-image: url("img/image.jpg");
            background-size:cover;
            margin-bottom: 10px;
        }
        #box3{
            width: 400px;
            height: 400px;
            border: 1px solid red;
            background-image: url("img/image.jpg");
            background-size:contain;
            background-repeat: no-repeat;
            margin-bottom: 10px;
        }
        </style>
</head>
<body>
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
</body>
</html>